package com.lagou.service.impl;

import com.lagou.dao.IUserDao;
import com.lagou.service.IUserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserServiceImpl implements IUserService {

    //注入引用数据类型
    private IUserDao userDao;

    //有参构造
    /*public UserServiceImpl(IUserDao userDao) {
        this.userDao = userDao;
    }*/

    //set方式注入
    public void setUserDao(IUserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save() {

        userDao.save();
    }
}
